"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
    return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (g && (g = 0, op[0] && (_ = 0)), _) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var vue_1 = require("vue");
var ant_design_vue_1 = require("ant-design-vue");
var dayjs_1 = __importDefault(require("dayjs"));
var picture_ts_1 = require("@/constant/picture.ts");
var pictureController_1 = require("@/api/pictureController");
var columns = [
    {
        title: 'id',
        dataIndex: 'id',
        width: 80,
    },
    {
        title: '图片',
        dataIndex: 'url',
    },
    {
        title: '名称',
        dataIndex: 'name',
    },
    {
        title: '简介',
        dataIndex: 'introduction',
        ellipsis: true,
    },
    {
        title: '类型',
        dataIndex: 'category',
    },
    {
        title: '标签',
        dataIndex: 'tags',
    },
    {
        title: '图片信息',
        dataIndex: 'picInfo',
    },
    {
        title: '用户 id',
        dataIndex: 'userId',
        width: 80,
    },
    {
        title: '创建时间',
        dataIndex: 'createTime',
    },
    {
        title: '编辑时间',
        dataIndex: 'editTime',
    },
    {
        title: '操作',
        key: 'action',
    },
    {
        title: '审核信息',
        dataIndex: 'reviewMessage',
    },
];
// 定义后端数据变量
var dataList = (0, vue_1.ref)([]);
var total = (0, vue_1.ref)(0);
// 搜索条件
var searchParams = (0, vue_1.reactive)({
    current: 1,
    pageSize: 5,
    sortField: 'createTime',
    sortOrder: 'descend'
});
// 分页参数
var pagination = (0, vue_1.computed)(function () {
    var _a, _b;
    return {
        current: (_a = searchParams.current) !== null && _a !== void 0 ? _a : 1,
        pageSize: (_b = searchParams.pageSize) !== null && _b !== void 0 ? _b : 5,
        total: total.value,
        showSizeChanger: true,
        showTotal: function (total) { return "\u5171".concat(total, "\u6761"); },
    };
});
// 获取数据
var fetchData = function () { return __awaiter(void 0, void 0, void 0, function () {
    var res;
    var _a, _b;
    return __generator(this, function (_c) {
        switch (_c.label) {
            case 0: return [4 /*yield*/, (0, pictureController_1.listPictureByPageUsingPost)(__assign({}, searchParams))];
            case 1:
                res = _c.sent();
                if (res.data.data) {
                    dataList.value = (_a = res.data.data.records) !== null && _a !== void 0 ? _a : [];
                    total.value = (_b = res.data.data.total) !== null && _b !== void 0 ? _b : 0;
                }
                else {
                    ant_design_vue_1.message.error('获取数据失败' + res.data.message);
                }
                return [2 /*return*/];
        }
    });
}); };
// 页面加载时请求一次
(0, vue_1.onMounted)(function () {
    fetchData();
});
// 搜索表单处理函数
var doSearch = function () {
    // 重置搜索条件
    searchParams.current = 1;
    fetchData();
};
// 表格变化处理
var doTableChange = function (page) {
    searchParams.current = page.current;
    searchParams.pageSize = page.pageSize;
    fetchData();
};
// 删除数据
var doDelete = function (id) { return __awaiter(void 0, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
        switch (_a.label) {
            case 0:
                if (!id) {
                    return [2 /*return*/];
                }
                return [4 /*yield*/, (0, pictureController_1.deletePictureUsingPost)({ id: id })];
            case 1:
                res = _a.sent();
                if (res.data.code === 0) {
                    ant_design_vue_1.message.success('删除成功');
                    // 刷新数据
                    fetchData();
                }
                else {
                    ant_design_vue_1.message.error('删除失败');
                }
                return [2 /*return*/];
        }
    });
}); };
// 审核图片
var handleReview = function (record, reviewStatus) { return __awaiter(void 0, void 0, void 0, function () {
    var reviewMessage, res;
    return __generator(this, function (_a) {
        switch (_a.label) {
            case 0:
                reviewMessage = reviewStatus === picture_ts_1.PIC_REVIEW_STATUS_ENUM.PASS ? '管理员操作通过' : '管理员操作拒绝';
                return [4 /*yield*/, (0, pictureController_1.doPictureReviewUsingPost)({
                        id: record.id,
                        reviewStatus: reviewStatus,
                        reviewMessage: reviewMessage,
                    })];
            case 1:
                res = _a.sent();
                if (res.data.code === 0) {
                    ant_design_vue_1.message.success('审核操作成功');
                    // 重新获取列表数据
                    fetchData();
                }
                else {
                    ant_design_vue_1.message.error('审核操作失败，' + res.data.message);
                }
                return [2 /*return*/];
        }
    });
}); }; /* PartiallyEnd: #3632/scriptSetup.vue */
function __VLS_template() {
    var __VLS_ctx = {};
    var __VLS_components;
    var __VLS_directives;
    // CSS variable injection 
    // CSS variable injection end 
    __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
        id: ("pictureManagePage"),
    });
    var __VLS_0 = {}.AFlex;
    /** @type { [typeof __VLS_components.AFlex, typeof __VLS_components.aFlex, typeof __VLS_components.AFlex, typeof __VLS_components.aFlex, ] } */ ;
    // @ts-ignore
    var __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
        justify: ("space-between"),
    }));
    var __VLS_2 = __VLS_1.apply(void 0, __spreadArray([{
            justify: ("space-between"),
        }], __VLS_functionalComponentArgsRest(__VLS_1), false));
    __VLS_elementAsFunction(__VLS_intrinsicElements.h2, __VLS_intrinsicElements.h2)({});
    var __VLS_6 = {}.ASpace;
    /** @type { [typeof __VLS_components.ASpace, typeof __VLS_components.aSpace, typeof __VLS_components.ASpace, typeof __VLS_components.aSpace, ] } */ ;
    // @ts-ignore
    var __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({}));
    var __VLS_8 = __VLS_7.apply(void 0, __spreadArray([{}], __VLS_functionalComponentArgsRest(__VLS_7), false));
    var __VLS_12 = {}.AButton;
    /** @type { [typeof __VLS_components.AButton, typeof __VLS_components.aButton, typeof __VLS_components.AButton, typeof __VLS_components.aButton, ] } */ ;
    // @ts-ignore
    var __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12({
        type: ("primary"),
        href: ("/add_picture"),
        target: ("_blank"),
    }));
    var __VLS_14 = __VLS_13.apply(void 0, __spreadArray([{
            type: ("primary"),
            href: ("/add_picture"),
            target: ("_blank"),
        }], __VLS_functionalComponentArgsRest(__VLS_13), false));
    __VLS_17.slots.default;
    var __VLS_17;
    var __VLS_18 = {}.AButton;
    /** @type { [typeof __VLS_components.AButton, typeof __VLS_components.aButton, typeof __VLS_components.AButton, typeof __VLS_components.aButton, ] } */ ;
    // @ts-ignore
    var __VLS_19 = __VLS_asFunctionalComponent(__VLS_18, new __VLS_18({
        type: ("primary"),
        href: ("/add_picture/batch"),
        target: ("_blank"),
        ghost: (true),
    }));
    var __VLS_20 = __VLS_19.apply(void 0, __spreadArray([{
            type: ("primary"),
            href: ("/add_picture/batch"),
            target: ("_blank"),
            ghost: (true),
        }], __VLS_functionalComponentArgsRest(__VLS_19), false));
    __VLS_23.slots.default;
    var __VLS_23;
    __VLS_11.slots.default;
    var __VLS_11;
    __VLS_5.slots.default;
    var __VLS_5;
    __VLS_elementAsFunction(__VLS_intrinsicElements.div)(__assign({ style: ({}) }));
    var __VLS_24 = {}.AForm;
    /** @type { [typeof __VLS_components.AForm, typeof __VLS_components.aForm, typeof __VLS_components.AForm, typeof __VLS_components.aForm, ] } */ ;
    // @ts-ignore
    var __VLS_25 = __VLS_asFunctionalComponent(__VLS_24, new __VLS_24(__assign({ 'onFinish': {} }, { layout: ("inline"), model: ((__VLS_ctx.searchParams)) })));
    var __VLS_26 = __VLS_25.apply(void 0, __spreadArray([__assign({ 'onFinish': {} }, { layout: ("inline"), model: ((__VLS_ctx.searchParams)) })], __VLS_functionalComponentArgsRest(__VLS_25), false));
    var __VLS_30;
    var __VLS_31 = {
        onFinish: (__VLS_ctx.doSearch)
    };
    var __VLS_27;
    var __VLS_28;
    var __VLS_32 = {}.AFormItem;
    /** @type { [typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, ] } */ ;
    // @ts-ignore
    var __VLS_33 = __VLS_asFunctionalComponent(__VLS_32, new __VLS_32({
        label: ("关键词"),
    }));
    var __VLS_34 = __VLS_33.apply(void 0, __spreadArray([{
            label: ("关键词"),
        }], __VLS_functionalComponentArgsRest(__VLS_33), false));
    var __VLS_38 = {}.AInput;
    /** @type { [typeof __VLS_components.AInput, typeof __VLS_components.aInput, ] } */ ;
    // @ts-ignore
    var __VLS_39 = __VLS_asFunctionalComponent(__VLS_38, new __VLS_38({
        value: ((__VLS_ctx.searchParams.searchText)),
        placeholder: ("从名称和简介搜索"),
        allowClear: (true),
    }));
    var __VLS_40 = __VLS_39.apply(void 0, __spreadArray([{
            value: ((__VLS_ctx.searchParams.searchText)),
            placeholder: ("从名称和简介搜索"),
            allowClear: (true),
        }], __VLS_functionalComponentArgsRest(__VLS_39), false));
    __VLS_37.slots.default;
    var __VLS_37;
    var __VLS_44 = {}.AFormItem;
    /** @type { [typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, ] } */ ;
    // @ts-ignore
    var __VLS_45 = __VLS_asFunctionalComponent(__VLS_44, new __VLS_44({
        label: ("类型"),
    }));
    var __VLS_46 = __VLS_45.apply(void 0, __spreadArray([{
            label: ("类型"),
        }], __VLS_functionalComponentArgsRest(__VLS_45), false));
    var __VLS_50 = {}.AInput;
    /** @type { [typeof __VLS_components.AInput, typeof __VLS_components.aInput, ] } */ ;
    // @ts-ignore
    var __VLS_51 = __VLS_asFunctionalComponent(__VLS_50, new __VLS_50({
        value: ((__VLS_ctx.searchParams.category)),
        placeholder: ("请输入类型"),
        allowClear: (true),
    }));
    var __VLS_52 = __VLS_51.apply(void 0, __spreadArray([{
            value: ((__VLS_ctx.searchParams.category)),
            placeholder: ("请输入类型"),
            allowClear: (true),
        }], __VLS_functionalComponentArgsRest(__VLS_51), false));
    __VLS_49.slots.default;
    var __VLS_49;
    var __VLS_56 = {}.AFormItem;
    /** @type { [typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, ] } */ ;
    // @ts-ignore
    var __VLS_57 = __VLS_asFunctionalComponent(__VLS_56, new __VLS_56({
        label: ("标签"),
    }));
    var __VLS_58 = __VLS_57.apply(void 0, __spreadArray([{
            label: ("标签"),
        }], __VLS_functionalComponentArgsRest(__VLS_57), false));
    var __VLS_62 = {}.ASelect;
    /** @type { [typeof __VLS_components.ASelect, typeof __VLS_components.aSelect, ] } */ ;
    // @ts-ignore
    var __VLS_63 = __VLS_asFunctionalComponent(__VLS_62, new __VLS_62(__assign(__assign({ value: ((__VLS_ctx.searchParams.tags)), mode: ("tags"), placeholder: ("请输入标签") }, { style: ({}) }), { allowClear: (true) })));
    var __VLS_64 = __VLS_63.apply(void 0, __spreadArray([__assign(__assign({ value: ((__VLS_ctx.searchParams.tags)), mode: ("tags"), placeholder: ("请输入标签") }, { style: ({}) }), { allowClear: (true) })], __VLS_functionalComponentArgsRest(__VLS_63), false));
    __VLS_61.slots.default;
    var __VLS_61;
    var __VLS_68 = {}.AFormItem;
    /** @type { [typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, ] } */ ;
    // @ts-ignore
    var __VLS_69 = __VLS_asFunctionalComponent(__VLS_68, new __VLS_68({
        name: ("reviewStatus"),
        label: ("审核状态"),
    }));
    var __VLS_70 = __VLS_69.apply(void 0, __spreadArray([{
            name: ("reviewStatus"),
            label: ("审核状态"),
        }], __VLS_functionalComponentArgsRest(__VLS_69), false));
    var __VLS_74 = {}.ASelect;
    /** @type { [typeof __VLS_components.ASelect, typeof __VLS_components.aSelect, ] } */ ;
    // @ts-ignore
    var __VLS_75 = __VLS_asFunctionalComponent(__VLS_74, new __VLS_74(__assign(__assign({ value: ((__VLS_ctx.searchParams.reviewStatus)) }, { style: ({}) }), { placeholder: ("请选择审核状态"), options: ((__VLS_ctx.PIC_REVIEW_STATUS_OPTIONS)), allowClear: (true) })));
    var __VLS_76 = __VLS_75.apply(void 0, __spreadArray([__assign(__assign({ value: ((__VLS_ctx.searchParams.reviewStatus)) }, { style: ({}) }), { placeholder: ("请选择审核状态"), options: ((__VLS_ctx.PIC_REVIEW_STATUS_OPTIONS)), allowClear: (true) })], __VLS_functionalComponentArgsRest(__VLS_75), false));
    __VLS_73.slots.default;
    var __VLS_73;
    var __VLS_80 = {}.AFormItem;
    /** @type { [typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, ] } */ ;
    // @ts-ignore
    var __VLS_81 = __VLS_asFunctionalComponent(__VLS_80, new __VLS_80({}));
    var __VLS_82 = __VLS_81.apply(void 0, __spreadArray([{}], __VLS_functionalComponentArgsRest(__VLS_81), false));
    var __VLS_86 = {}.AButton;
    /** @type { [typeof __VLS_components.AButton, typeof __VLS_components.aButton, typeof __VLS_components.AButton, typeof __VLS_components.aButton, ] } */ ;
    // @ts-ignore
    var __VLS_87 = __VLS_asFunctionalComponent(__VLS_86, new __VLS_86({
        type: ("primary"),
        htmlType: ("submit"),
    }));
    var __VLS_88 = __VLS_87.apply(void 0, __spreadArray([{
            type: ("primary"),
            htmlType: ("submit"),
        }], __VLS_functionalComponentArgsRest(__VLS_87), false));
    __VLS_91.slots.default;
    var __VLS_91;
    __VLS_85.slots.default;
    var __VLS_85;
    __VLS_29.slots.default;
    var __VLS_29;
    __VLS_elementAsFunction(__VLS_intrinsicElements.div)(__assign({ style: ({}) }));
    var __VLS_92 = {}.ATable;
    /** @type { [typeof __VLS_components.ATable, typeof __VLS_components.aTable, typeof __VLS_components.ATable, typeof __VLS_components.aTable, ] } */ ;
    // @ts-ignore
    var __VLS_93 = __VLS_asFunctionalComponent(__VLS_92, new __VLS_92(__assign({ 'onChange': {} }, { columns: ((__VLS_ctx.columns)), dataSource: ((__VLS_ctx.dataList)), pagination: ((__VLS_ctx.pagination)) })));
    var __VLS_94 = __VLS_93.apply(void 0, __spreadArray([__assign({ 'onChange': {} }, { columns: ((__VLS_ctx.columns)), dataSource: ((__VLS_ctx.dataList)), pagination: ((__VLS_ctx.pagination)) })], __VLS_functionalComponentArgsRest(__VLS_93), false));
    var __VLS_98;
    var __VLS_99 = {
        onChange: (__VLS_ctx.doTableChange)
    };
    var __VLS_95;
    var __VLS_96;
    __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
    {
        var __VLS_thisSlot = __VLS_97.slots.bodyCell;
        var _a = __VLS_getSlotParams(__VLS_thisSlot)[0], column_1 = _a.column, record_1 = _a.record;
        if (column_1.dataIndex === 'url') {
            var __VLS_100 = {}.AImage;
            /** @type { [typeof __VLS_components.AImage, typeof __VLS_components.aImage, ] } */ ;
            // @ts-ignore
            var __VLS_101 = __VLS_asFunctionalComponent(__VLS_100, new __VLS_100({
                src: ((record_1.url)),
                width: ((120)),
            }));
            var __VLS_102 = __VLS_101.apply(void 0, __spreadArray([{
                    src: ((record_1.url)),
                    width: ((120)),
                }], __VLS_functionalComponentArgsRest(__VLS_101), false));
        }
        if (column_1.dataIndex === 'tags') {
            var __VLS_106 = {}.ASpace;
            /** @type { [typeof __VLS_components.ASpace, typeof __VLS_components.aSpace, typeof __VLS_components.ASpace, typeof __VLS_components.aSpace, ] } */ ;
            // @ts-ignore
            var __VLS_107 = __VLS_asFunctionalComponent(__VLS_106, new __VLS_106({
                wrap: (true),
            }));
            var __VLS_108 = __VLS_107.apply(void 0, __spreadArray([{
                    wrap: (true),
                }], __VLS_functionalComponentArgsRest(__VLS_107), false));
            for (var _i = 0, _b = __VLS_getVForSourceType((JSON.parse(record_1.tags || '[]'))); _i < _b.length; _i++) {
                var tag = _b[_i][0];
                var __VLS_112 = {}.ATag;
                /** @type { [typeof __VLS_components.ATag, typeof __VLS_components.aTag, typeof __VLS_components.ATag, typeof __VLS_components.aTag, ] } */ ;
                // @ts-ignore
                var __VLS_113 = __VLS_asFunctionalComponent(__VLS_112, new __VLS_112({
                    key: ((tag)),
                }));
                var __VLS_114 = __VLS_113.apply(void 0, __spreadArray([{
                        key: ((tag)),
                    }], __VLS_functionalComponentArgsRest(__VLS_113), false));
                (tag);
                __VLS_117.slots.default;
                var __VLS_117;
            }
            __VLS_111.slots.default;
            var __VLS_111;
        }
        if (column_1.dataIndex === 'picInfo') {
            __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
            (record_1.picFormat);
            __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
            (record_1.picWidth);
            __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
            (record_1.picHeight);
            __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
            (record_1.picScale);
            __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
            ((record_1.picSize / 1024).toFixed(2));
        }
        if (column_1.dataIndex === 'reviewMessage') {
            __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
            (__VLS_ctx.PIC_REVIEW_STATUS_MAP[record_1.reviewStatus]);
            __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
            (record_1.reviewMessage);
            __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
            (record_1.reviewerId);
            if (record_1.reviewTime) {
                __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
                (__VLS_ctx.dayjs(record_1.reviewTime).format('YYYY-MM-DD HH:mm:ss'));
            }
        }
        if (column_1.dataIndex === 'createTime') {
            (__VLS_ctx.dayjs(record_1.createTime).format('YYYY-MM-DD HH:mm:ss'));
        }
        if (column_1.dataIndex === 'editTime') {
            (__VLS_ctx.dayjs(record_1.editTime).format('YYYY-MM-DD HH:mm:ss'));
        }
        else if (column_1.key === 'action') {
            var __VLS_118 = {}.ASpace;
            /** @type { [typeof __VLS_components.ASpace, typeof __VLS_components.aSpace, typeof __VLS_components.ASpace, typeof __VLS_components.aSpace, ] } */ ;
            // @ts-ignore
            var __VLS_119 = __VLS_asFunctionalComponent(__VLS_118, new __VLS_118({
                wrap: (true),
            }));
            var __VLS_120 = __VLS_119.apply(void 0, __spreadArray([{
                    wrap: (true),
                }], __VLS_functionalComponentArgsRest(__VLS_119), false));
            if (record_1.reviewStatus !== __VLS_ctx.PIC_REVIEW_STATUS_ENUM.PASS) {
                var __VLS_124 = {}.AButton;
                /** @type { [typeof __VLS_components.AButton, typeof __VLS_components.aButton, typeof __VLS_components.AButton, typeof __VLS_components.aButton, ] } */ ;
                // @ts-ignore
                var __VLS_125 = __VLS_asFunctionalComponent(__VLS_124, new __VLS_124(__assign({ 'onClick': {} }, { type: ("link") })));
                var __VLS_126 = __VLS_125.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: ("link") })], __VLS_functionalComponentArgsRest(__VLS_125), false));
                var __VLS_130 = void 0;
                var __VLS_131 = {
                    onClick: function () {
                        var _a = [];
                        for (var _i = 0; _i < arguments.length; _i++) {
                            _a[_i] = arguments[_i];
                        }
                        var $event = _a[0];
                        if (!(!((column_1.dataIndex === 'editTime'))))
                            return;
                        if (!((column_1.key === 'action')))
                            return;
                        if (!((record_1.reviewStatus !== __VLS_ctx.PIC_REVIEW_STATUS_ENUM.PASS)))
                            return;
                        __VLS_ctx.handleReview(record_1, __VLS_ctx.PIC_REVIEW_STATUS_ENUM.PASS);
                    }
                };
                var __VLS_127 = void 0;
                var __VLS_128 = void 0;
                __VLS_129.slots.default;
                var __VLS_129;
            }
            if (record_1.reviewStatus !== __VLS_ctx.PIC_REVIEW_STATUS_ENUM.REJECT) {
                var __VLS_132 = {}.AButton;
                /** @type { [typeof __VLS_components.AButton, typeof __VLS_components.aButton, typeof __VLS_components.AButton, typeof __VLS_components.aButton, ] } */ ;
                // @ts-ignore
                var __VLS_133 = __VLS_asFunctionalComponent(__VLS_132, new __VLS_132(__assign({ 'onClick': {} }, { type: ("link"), danger: (true) })));
                var __VLS_134 = __VLS_133.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: ("link"), danger: (true) })], __VLS_functionalComponentArgsRest(__VLS_133), false));
                var __VLS_138 = void 0;
                var __VLS_139 = {
                    onClick: function () {
                        var _a = [];
                        for (var _i = 0; _i < arguments.length; _i++) {
                            _a[_i] = arguments[_i];
                        }
                        var $event = _a[0];
                        if (!(!((column_1.dataIndex === 'editTime'))))
                            return;
                        if (!((column_1.key === 'action')))
                            return;
                        if (!((record_1.reviewStatus !== __VLS_ctx.PIC_REVIEW_STATUS_ENUM.REJECT)))
                            return;
                        __VLS_ctx.handleReview(record_1, __VLS_ctx.PIC_REVIEW_STATUS_ENUM.REJECT);
                    }
                };
                var __VLS_135 = void 0;
                var __VLS_136 = void 0;
                __VLS_137.slots.default;
                var __VLS_137;
            }
            var __VLS_140 = {}.AButton;
            /** @type { [typeof __VLS_components.AButton, typeof __VLS_components.aButton, typeof __VLS_components.AButton, typeof __VLS_components.aButton, ] } */ ;
            // @ts-ignore
            var __VLS_141 = __VLS_asFunctionalComponent(__VLS_140, new __VLS_140({
                type: ("link"),
                href: (("/add_picture?id=".concat(record_1.id))),
                target: ("_blank"),
            }));
            var __VLS_142 = __VLS_141.apply(void 0, __spreadArray([{
                    type: ("link"),
                    href: (("/add_picture?id=".concat(record_1.id))),
                    target: ("_blank"),
                }], __VLS_functionalComponentArgsRest(__VLS_141), false));
            __VLS_145.slots.default;
            var __VLS_145;
            var __VLS_146 = {}.AButton;
            /** @type { [typeof __VLS_components.AButton, typeof __VLS_components.aButton, typeof __VLS_components.AButton, typeof __VLS_components.aButton, ] } */ ;
            // @ts-ignore
            var __VLS_147 = __VLS_asFunctionalComponent(__VLS_146, new __VLS_146(__assign({ 'onClick': {} }, { danger: (true) })));
            var __VLS_148 = __VLS_147.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { danger: (true) })], __VLS_functionalComponentArgsRest(__VLS_147), false));
            var __VLS_152 = void 0;
            var __VLS_153 = {
                onClick: function () {
                    var _a = [];
                    for (var _i = 0; _i < arguments.length; _i++) {
                        _a[_i] = arguments[_i];
                    }
                    var $event = _a[0];
                    if (!(!((column_1.dataIndex === 'editTime'))))
                        return;
                    if (!((column_1.key === 'action')))
                        return;
                    __VLS_ctx.doDelete(record_1.id);
                }
            };
            var __VLS_149 = void 0;
            var __VLS_150 = void 0;
            __VLS_151.slots.default;
            var __VLS_151;
            __VLS_123.slots.default;
            var __VLS_123;
        }
    }
    var __VLS_97;
    var __VLS_slots;
    var $slots;
    var __VLS_inheritedAttrs;
    var $attrs;
    var __VLS_refs = {};
    var $refs;
    var $el;
    return {
        attrs: {},
        slots: __VLS_slots,
        refs: $refs,
        rootEl: $el,
    };
}
;
var __VLS_self = (await Promise.resolve().then(function () { return __importStar(require('vue')); })).defineComponent({
    setup: function () {
        return {
            dayjs: dayjs_1.default,
            PIC_REVIEW_STATUS_ENUM: picture_ts_1.PIC_REVIEW_STATUS_ENUM,
            PIC_REVIEW_STATUS_MAP: picture_ts_1.PIC_REVIEW_STATUS_MAP,
            PIC_REVIEW_STATUS_OPTIONS: picture_ts_1.PIC_REVIEW_STATUS_OPTIONS,
            columns: columns,
            dataList: dataList,
            searchParams: searchParams,
            pagination: pagination,
            doSearch: doSearch,
            doTableChange: doTableChange,
            doDelete: doDelete,
            handleReview: handleReview,
        };
    },
});
exports.default = (await Promise.resolve().then(function () { return __importStar(require('vue')); })).defineComponent({
    setup: function () {
        return {};
    },
    __typeEl: {},
});
; /* PartiallyEnd: #4569/main.vue */
